#!/usr/bin/env bash
. ./scripts/devcontainer/_assert-in-container "$0" "$@"

# TODO remove this and run-second-instance
# (temporary until we have a 'real' server standing.)

set -euo pipefail

INSTANCE_DB="data-instance2.db"

green="\033[0;32m"
reset="\033[0m"

echo -e "${green}Stopping instance2...${reset}"
pkill -f "DARK_CONFIG_DB_NAME=${INSTANCE_DB}" || true
echo -e "${green}Done${reset}"
